package team.you.change.service;

import com.sun.org.apache.regexp.internal.RE;
import org.springframework.web.multipart.MultipartFile;
import team.you.change.util.Result;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService {
    //获取所有用户信息
    Result getAllUsers(Integer page, Integer limit);
    //删除一行
    Result del(String id);
    //删除多行
    Result delete(String[] ids);
    //更新，表格动态更新，每次修改一个键
    Result update(String id, String value, String field);
    //模糊查询
    Result selectByLike(String value, Integer type, Integer page, Integer limit);
    //获取所有教师id和名称
    Result getTutorOption();
    //图片上传
    Result upImg(MultipartFile file, HttpServletRequest request);
    //基础用户信息修改
    Result editInfo(String id,String username, String realName, String idNumber, String head,HttpServletRequest request);
    //发送邮件验证码
    Result emailCode(List<String> email, HttpServletRequest request);
    //修改手机号或邮箱
    Result edit(String id, String value, Integer type, HttpServletRequest request);
}
